local statusKey = ARGV[1]
local userId = ARGV[2]
local code = ARGV[3]

local key = ARGV[4]

local blogKey = ARGV[5]
local blogId = ARGV[6]
local blogNum = ARGV[7]

redis.call('HSET',statusKey,userId,code)

redis.call('ZREM',key,userId)

redis.call('ZINCRBY',blogKey,blogNum,blogId)